# try:
#     a = 1/0
# except NameError as Na:
#     print("NameError",Na)
# except SyntaxError as sy:
#     print("SynataxError",sy)
# except IndexError as ie:
#     print("indexerror",ie)
# except KeyError as ke:
#     print("keyerroe",ke)
# except IOError as io:
#     print("ioerror",io)
# except AttributeError as at:
#     print("attrubuteerror",at)
# except ValueError as va:
#     print("valueerror",va)
# except ZeroDivisionError as ze:
#     print("zero error:",ze)
# except Exception as e :
#     print("exceptin:",e)
# else:   #没有发生任何异常处理时用else的语句块
#     print("this is else test")
# finally: #不管有没有异常，不管异常有没有被捕获都执行
#     print("this is finally test")
# print("end.......")

# try:
#     a = int(input("请输入学生成绩："))
#     if a in range(101):
#         pass
#     else:
#         raise IndexError
# except ValueError as va:
#     print("你输入的不是整数")
# except IndexError as in1:
#     print("成绩输入超过范围")
# else:
#     print(f"你的成绩是{a}")








































































